
package statics;

public class Frog
{
	int frogCount = 0; // Declare and initialize
	// instance variable

	public Frog()
	{
		frogCount += 1; // Modify the value in the constructor
	}

	public static void main(String[] args)
	{
		new Frog();

		new Frog();

		System.out.println("Frog count is now " + new Frog().frogCount);

	}

}
